package com.itboy.mall.wms.waresku.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 商品库存对象 mall_ware_sku
 *
 * @author itboy
 * @date 2021-08-10
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_ware_sku")
public class MallWareSku implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * id
     */
    @TableId(value = "id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * sku_id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 仓库id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long wareId;

    /**
     * 库存数
     */
    private Long stock;

    /**
     * sku_name
     */
    private String skuName;

    /**
     * 锁定库存
     */
    private Long stockLocked;

}
